﻿@{
    Layout = "~/Views/Shared/_Layout2.cshtml";
}
@using Stackoverflow.Web.Models
@model LoginViewModel

<div class="page-login container">
    
    <div class="row">
        <div class="col-sm-6 col-sm-offset-3">
            <div style="width:280px ; margin: auto">
                <div class="navbar navbar-default login__navbar">
                    <h4 class="text-center"><i class="icon-user"></i>Logon page</h4>
                </div>
                <form name="model" action="@Url.Action("Login")" method="post">
                    <div class="form-group">
                        @Html.TextBoxFor(model => model.UserName, new { @class = "form-control", placeholder = "username", autofocus = true, required = true })
                    </div>
                    <div class="form-group">
                        <button class="btn btn-danger btn-block">Login</button>
                    </div>

                    @if (!ViewData.ModelState.IsValid)
                    {
                        @Html.ValidationSummary(string.Empty, new { @class = "alert alert-danger" })
                    }
                </form>
            </div>
        </div>
    </div>
</div>